-- GENERATED SPELL FOR [Death Talon Hatcher] --


function spell0_12468(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(22275,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12468', 10000, 1)
end

function spell1_12468(pUnit, Event) --@Growing Flames,n/a--
pUnit:FullCastSpellOnTarget(22442,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12468', 6000, 1)
end

function Sorts_12468(pUnit, Event)
local choix_sorts_12468 = math.random(0, 1)
if choix_sorts_12468 == 0 then
pUnit:RegisterEvent('spell0_12468', 1, 1)
end
if choix_sorts_12468 == 1 then
pUnit:RegisterEvent('spell1_12468', 1, 1)
end
end

function mob12468_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12468', math.random(1500, 3000), 1)
end

function mob12468_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12468_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12468_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12468, 1, 'mob12468_Action')
RegisterUnitEvent(12468, 2, 'mob12468_Leave')
RegisterUnitEvent(12468, 3, 'mob12468_Kill')
RegisterUnitEvent(12468, 4, 'mob12468_Die')
